<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
<script>
 class Person{
   constructor(kind,num){
     this.kind=kind
     this.num=num
   }
   act(){
     console.log('父类的方法')
   }
 }
 class man extends Person{
   constructor(name,age,kind,num){
     super(kind,num)
     this.name=name;
     this.age=age
   }
   act2(){
     console.log('子类方法',kind)
   }
 }
 var person = new man('范玉峰',18,'真男人',200)
 console.log(person)
</script>

  
</body>
</html>